<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html>
<head>
	<!-- <link type="text/css" rel="stylesheet" href="/stylesheets/main.css" /> -->
    <title>The Living History: Edit user</title>
</head>

<body>

<div id="body">
	
	<h1>Edit user</h1>
	
	<div>
	<form action="/editUserdata/{{user_data.user.nickname}}" method="post" name="editUser">
	<table frame="border">
	  <tr>
	    <td>Username:</td>
		<td><input type="Text" name="username" size="25" value="{{user_data.user.nickname}}"></td>
	  </tr>
	  <tr>
	    <td>Name:</td>
	    <td><input type="Text" name="name" size="25" value="{{user_data.name}}"></td>
      </tr>
	  <tr>
	    <td>Role:</td>
		<td>
			<select name="role">
				<option value="SuperUser"{% ifequal user_data.role "SuperUser" %} selected{% endifequal %}>SuperUser</option>
				<option value="Read-only"{% ifequal user_data.role "Read-only" %} selected{% endifequal %}>Read-only</option>
			</select>
		</td>
	  </tr>
	  <tr>
	  <td align="center" colspan="2"><input type="Submit" name="edit" value="Edit user data"></td>
	  </tr>
	</table>
    </form>
	</div>
	
</div>

</body>
</html>
